package com.ruicar.afs.cloud.contract.gateway.beans;

import com.ruicar.afs.cloud.contract.gateway.entity.GateWayApiMapping;
import com.ruicar.afs.cloud.contract.gateway.enums.ApiType;
import com.ruicar.afs.cloud.common.modules.enums.SystemType;
import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * The type ApiDefine
 * <p>Description: </p>
 *
 * @author Fzero
 * @version 1.0
 * @date Created on 2020.07.20 21:17:40
 * @since 1.0
 */
@Data
public class ApiDefine {
    /**
     * Gate way api mapping
     * <p>Description: </p>
     */
    private GateWayApiMapping gateWayApiMapping;
    /**
     * Type list map
     * <p>Description: </p>
     */
    private Map<SystemType,List<SystemDefine>> typeListMap = new HashMap<>();

    /**
     * Api type api type
     *
     * @return the api type
     */
    public ApiType apiType(){
        return gateWayApiMapping.getApiType();
    }
}
